package com.zan.pattern.visitor;

/**
 * @Author Zan
 * @Create 2024/4/27 17:28
 * @Description : 具体元素角色类（宠物狗）
 * @ClassName: Dog
 */
public class Dog implements Animal {
    @Override
    public void accept(Person person) {
        person.feed(this);
        System.out.println("好好吃，汪汪汪");
    }
}
